import request from '@/utils/request1'

// 分页条件查询
export function getRequirement(params) {
  return request({
    url: '/requirement/selectPage',
    method: 'POST',
    params
  })
}

// 人员需求添加
export function insertRequirement(data) {
  return request({
    url: '/requirement/insert',
    method: 'POST',
    data
  })
}

// 人员需求修改
export function updateRequirement(data) {
  return request({
    url: '/requirement/update',
    method: 'POST',
    data
  })
}

// 人员需求查询
export function selectRequirement(params) {
  return request({
    url: '/requirement/findId',
    method: 'post',
    params
  })
}

// 人员需求删除
export function delRequirement(data) {
  return request({
    url: '/requirement/del',
    method: 'POST',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

// 处理
export function addInform(data) {
  return request({
    url: '/requirement/addInform',
    method: 'post',
    data
  })
}

